import request from '@/utils/request'
import querystring from 'querystring'


export function findListPage (params) {
    let queryString = querystring.stringify(params);
    return request({
      url: '/activiti/toberead/findListPage?'+queryString,
      method: 'get',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8',
      }
    })
  }

  export function findMyListPage (params) {
    let queryString = querystring.stringify(params);
    return request({
      url: '/activiti/toberead/findMyListPage?'+queryString,
      method: 'get',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8',
      }
    })
  }
  
//已读
export function upRead (params) {
    return request({
        url: '/activiti/toberead/upRead',
        method: 'post',
        data: params
    })
}
  
//删除数据
export function delData (ids) {
    return request({
      url: '/activiti/toberead/'+ids,
      method: 'delete',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8',
      }
    })
  }
